/*
 * R2DIntArray.h
 * according to http://wiki.forum.nokia.com/index.php/Two_Dimensional_TInt_Array_in_Symbian
 *  Created on: 15.11.2008
 *      Author: lenli
 */

#ifndef R2DINTARRAY_H_
#define R2DINTARRAY_H_

#include <e32std.h>
 
typedef RArray<TInt> RIntegerArray;
 
class R2DIntArray: public RPointerArray <RIntegerArray>
{
public:
    ~R2DIntArray();
    void ResetAndDestroy();
    inline TInt& At(TInt a1, TInt a2) { return (*((*this)[a1]))[a2]; }
	TInt Find(TInt aInteger);
	void Add(TInt aInteger);
	void Set(TInt aRow, TInt aColumn, TInt aValue);
 
	void AppendLast(TInt aPosition, TInt aValue);
	
};

#endif /* R2DINTARRAY_H_ */
